// pages/demo/learn_wxs/index.js
Page({
    /**
     * 页面的初始数据
     */
    data: {
        books: [
            { id: 1, bookName: '你不知道的js', price: 56 },
            { id: 2, bookName: '悟空传', price: 34 },
            { id: 3, bookName: 'http权威指南', price: 86 },
        ],
    },
    formatPrice(price) {
        return "￥" + price
    }
})